Custom Hooks
Use the Custom Hooks tab of the Application Preferences dialog box to set the process that should run before a particular process runs or after a process completes.
Pre-process and post-process custom applications can be set for the following Cobra processes:
- Advance Calendar
- Calculate Forecast
- Integration
- Move Work Package
- Reclass
- Update Totals
A custom application, which is saved on the application server and not on the local machine, can be any of the following types:
- Script: A text file with a SQL query or list of commands in VFP
- Executable: For example, a compiled VB or C++ application
- Visual FoxPro Procedure: A compiled .FXP file
Using custom hooks in Cobra involves the following steps:
- Creating the custom application using any of the application types
- Setting the processes that should run before a process runs or after the process completes using the Custom Hooks tab of the Application Preferences dialog box
The table below provides a sample path and extension for each custom application type and which fields to specify or select on the Custom Hooks tab.
Custom Application Type | Sample Path and Extension | Notes |
---|---|---|
Script | <Drive>:\<Path>\Test.txt | In the Custom Application field, enter or locate the sample path and extension, and select Script in the Type field. |
Executable | <Drive>:\<Path>\Test.exe | In the Custom Application field, enter or locate the sample path and extension, and select Executable in the Type field. |
Visual FoxPro Procedure | <Drive>:\<Path>\Test.fxp | In the Custom Application field, enter or locate the sample path and extension, and select Visual FoxPro Procedure in the Type field. |
- Related Topics:
- Custom Hook Parameters
The custom hook parameters that should be passed are determined by the parameters supported in the custom hook tool. - Customization of Processes
Use the Custom Hooks tab of the Application Preferences dialog box to set up the custom applications that will run as part of the integration process. - Customization of Integration Process
The integration process provides hooks to allow custom applications to run before importing the schedule data into Cobra. This enables further validation of information, a reformat of the schedule data, or conversion of the schedule in a format that the standard integration supports. - Procedures
Use the procedures to manage custom hooks.
Parent Topic: Tools
Learn more about...